#include<iostream>
using namespace std;
typedef long long LL;
bool is_prime(LL x)
{
	if (x <= 1) {
		return 0;
	}
	for (LL i = 2; i * i <= x; i++) {
		if (x % i == 0) {
			return 0;
		}
	}
	return 1;
}
int main()
{
	int x = 1;
	int sum = 0;
	for (int i = 0; i <= 100; i++) {
		LL k = (x << i) - 1;
		if (is_prime(k)) {
			sum++;
			cout << k << " ";
			if (sum == 5) {
				return 0;
			}
		}
	}
	return 0;
}